package com.pap.product.item.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_product_item", namespace = "com.pap.product.item.auto.mapper.ItemMapper", remarks = " 修改点 ", aliasName = "t_product_item t_product_item")
public class Item extends PapBaseEntity implements Serializable {
	/**
	 * 编码,所属表字段为t_product_item.CODE
	 */
	@MyBatisColumnAnnotation(name = "CODE", value = "t_product_item_CODE", chineseNote = "编码", tableAlias = "t_product_item")
	private String code;

	/**
	 * 名称,所属表字段为t_product_item.NAME
	 */
	@MyBatisColumnAnnotation(name = "NAME", value = "t_product_item_NAME", chineseNote = "名称", tableAlias = "t_product_item")
	private String name;

	/**
	 * 字典-值类型(单值ONE,字典值DIC，如果是字典类型，则需要根据DICT_ID，读取字典相关值),所属表字段为t_product_item.VALUE_TYPE
	 */
	@MyBatisColumnAnnotation(name = "VALUE_TYPE", value = "t_product_item_VALUE_TYPE", chineseNote = "字典-值类型(单值ONE,字典值DIC，如果是字典类型，则需要根据DICT_ID，读取字典相关值)", tableAlias = "t_product_item")
	private String valueType;

	/**
	 * 匹配对应的字典编号,所属表字段为t_product_item.DICT_ID
	 */
	@MyBatisColumnAnnotation(name = "DICT_ID", value = "t_product_item_DICT_ID", chineseNote = "匹配对应的字典编号", tableAlias = "t_product_item")
	private String dictId;

	/**
	 * 字典数据来源方式(手工MANUAL,固定值FIXED,自动AUTO),所属表字段为t_product_item.DATA_SOURCE
	 */
	@MyBatisColumnAnnotation(name = "DATA_SOURCE", value = "t_product_item_DATA_SOURCE", chineseNote = "字典数据来源方式(手工MANUAL,固定值FIXED,自动AUTO)", tableAlias = "t_product_item")
	private String dataSource;

	/**
	 * 类型，融资项目类型，页面布局时候筛选显示,所属表字段为t_product_item.ITEM_TYPE
	 */
	@MyBatisColumnAnnotation(name = "ITEM_TYPE", value = "t_product_item_ITEM_TYPE", chineseNote = "类型，融资项目类型，页面布局时候筛选显示", tableAlias = "t_product_item")
	private String itemType;

	/**
	 * 是否系统类型,所属表字段为t_product_item.SYSTEM_FLAG
	 */
	@MyBatisColumnAnnotation(name = "SYSTEM_FLAG", value = "t_product_item_SYSTEM_FLAG", chineseNote = "是否系统类型", tableAlias = "t_product_item")
	private String systemFlag;

	private static final long serialVersionUID = 1L;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValueType() {
		return valueType;
	}

	public void setValueType(String valueType) {
		this.valueType = valueType;
	}

	public String getDictId() {
		return dictId;
	}

	public void setDictId(String dictId) {
		this.dictId = dictId;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public String getSystemFlag() {
		return systemFlag;
	}

	public void setSystemFlag(String systemFlag) {
		this.systemFlag = systemFlag;
	}
	
	@Override
	public String getDynamicTableName() {
		return "t_product_item";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", code=").append(code);
		sb.append(", name=").append(name);
		sb.append(", valueType=").append(valueType);
		sb.append(", dictId=").append(dictId);
		sb.append(", dataSource=").append(dataSource);
		sb.append(", itemType=").append(itemType);
		sb.append(", systemFlag=").append(systemFlag);
		sb.append("]");
		return sb.toString();
	}
}